﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Admin_Home : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.IsPostBack)
        { }
        else
        {
            if ((string)Session["UserName"] == null)
            {
                Response.Redirect("Login.aspx");
            }
            else
            {
                lblMsg.Text = "Dear " + "-" + (string)Session["UserName"] + "," + "Welcome to LitReview system";
            }
        }
    }


    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("Login.aspx");
        Session.RemoveAll();
        Session["ExperimentId"] = null;
        Session["YieldId"] = null;
        Session["LiquidCompId"] = null;
        Session["ReferenceId"] = null;
        Response.Redirect("Material.aspx");

    }
    protected void btnNew_Click(object sender, EventArgs e)
    {
        Response.Redirect("AddReference.aspx");
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("EditReference.aspx");
    }
}
